Skip to content

[PHP] Define site-builder post_content rewrite expectations - #558

Draft
adamziel wants to merge 4 commits into
codex/classify-nested-post-contentfrom
codex/classify-site-builder-post-content
Draft

[PHP] Define site-builder post_content rewrite expectations#558
adamziel wants to merge 4 commits into
codex/classify-nested-post-contentfrom
codex/classify-site-builder-post-content

Conversation

@adamziel

@adamziel adamziel commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

This draft adds 60 site-builder post_content rewrite cases through the actual db-apply SQL path, preserving every byte except the mapped host. It also recognizes CSS in style tags and JSON in application/ld+json or application/json script tags, where the cautious replacement preserves existing escaping.\n\nWith #559 below it, the current run passes 28 cases and fails 32. The remaining failures expose unsupported boundaries without changing production behavior.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Pull pipeline performance — large-directory

Site: large-directory · 2,000+ plus targeted file-transfer scenarios files · 10,000 posts · 25,000 postmeta · PHP 8.5.9

Stage PR trunk Δ Status Details
playground-sqlite-db-pull 9.55 s 9.52 s ⚪ +29 ms (+0.3%) condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
trunk: condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
playground-sqlite-db-apply 3.76 s 3.63 s ⚪ +130 ms (+3.6%) condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
trunk: condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
Total 13.31 s 13.15 s ⚪ +159 ms (+1.2%)

Numbers carry runner noise; treat single-run deltas as directional, not authoritative.

📈 Trunk performance history — commit-by-commit timeline.

@adamziel
adamziel force-pushed the codex/classify-site-builder-post-content branch 2 times, most recently from 0b22870 to 22f4383 Compare August 12, 2026 11:20
@adamziel
adamziel changed the base branch from trunk to codex/classify-nested-post-content August 12, 2026 11:20
@adamziel
adamziel force-pushed the codex/classify-site-builder-post-content branch from 22f4383 to 644734a Compare August 12, 2026 11:32
@adamziel
adamziel changed the base branch from codex/classify-nested-post-content to codex/classify-css-and-json-script August 12, 2026 11:32
@adamziel
adamziel force-pushed the codex/classify-site-builder-post-content branch from 644734a to ee87351 Compare August 12, 2026 11:50
@adamziel
adamziel changed the base branch from codex/classify-css-and-json-script to codex/classify-nested-post-content August 12, 2026 11:50
@adamziel
adamziel force-pushed the codex/classify-site-builder-post-content branch 2 times, most recently from 0729592 to 6031bff Compare August 12, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant